<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:composite="http://java.sun.com/jsf/composite/ezcomp"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">


    <!-- INTERFACE -->
    <cc:interface >
        <cc:attribute name="item" required="true" />
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <div style="display: inline-block;vertical-align: top">
            <p:graphicImage value="/upload/#{cc.attrs.item.advertImage()}"  styleClass="advlistimage"/>
        </div>
        <div style="display: inline-block;width: 400px">
            <h:outputLabel id="a#{cc.attrs.item.number}" value="#{cc.attrs.item.address}"/><br/>
            #{bundle.total} #{cc.attrs.item.total_sqr} /#{bundle.living} #{cc.attrs.item.living_sqr}/#{bundle.kitchen} #{cc.attrs.item.kitchen_sqr}/#{bundle.balkony} #{cc.attrs.item.balkony_sqr} <br/>
            #{bundle.floor} #{cc.attrs.item.floor} #{bundle.of} #{cc.attrs.item.floors}<br/>
            Price #{cc.attrs.item.price}'000 USD
        </div>
    </cc:implementation>
</html>